<?php

//prevents directly accessing this file from a web browser
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
 
include('include/utils/silenus_utils.php');

class generate_reference {
	
    function generate_reference(& $focus, $event){

    	if(empty($focus->name)){
			$prefix = 'REC-' . date("Ymd") . '-';
			$focus->name = generate_code('mv_waste_collection', 'name', $prefix, 4);
		}
    }
}

?>